package com.teamin.dto;

import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;

/**
 * @Author: yangrui
 * @Description: 新建文件夹DTO
 * @Date: 下午7:33 2017/11/20
 */
public class NetDiskFolderDTO {
    @ApiModelProperty(value = "文件夹名称")
    @NotEmpty(message = "文件夹名称不能为空")
    private String folderName;
    @ApiModelProperty(value = "文件夹节点，根为固定值0")
    @NotNull(message = "文件夹节点不能为空")
    private Integer node;

    public String getFolderName() {
        return folderName;
    }

    public void setFolderName(String folderName) {
        this.folderName = folderName;
    }

    public Integer getNode() {
        return node;
    }

    public void setNode(Integer node) {
        this.node = node;
    }

    @Override
    public String toString() {
        return "NetDiskFolderDTO{" +
                "folderName='" + folderName + '\'' +
                ", node=" + node +
                '}';
    }
}

